﻿// See https://aka.ms/new-console-template for more information
using CompressDemo;
using System.Text;

//Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);



// SharpCompress
//var sharpCompress = new SharpCompressDemo();
//await sharpCompress.Compress();
//await sharpCompress.CompressCHNFile();
//await sharpCompress.Decompress();
//await sharpCompress.DecompressCHNFile();


// 原生 System.IO.Compression
SystemIOCompressionDemo compression = new SystemIOCompressionDemo();
//await compression.CompressDirectory();
await compression.CompressFile();
//await Task.Delay(TimeSpan.FromSeconds(3));
//await compression.Decompress();
//await compression.CompressGZIP();

Console.WriteLine("any key exit");
Console.ReadKey();